package xuliehua;

public class test {
    public static void main(String[] args) throws Exception {
        Address addr = new Address("广州市", "青云街", 40033);
        Person p1 = new Person("小明", 18, addr);
        Person p2 = p1.getClone();
        System.out.println("p1---------------->"+p1);
        System.out.println("p2---------------->"+p2);
        System.out.println("p1哈希值---------------->"+p1.hashCode());
        System.out.println("p2哈希值---------------->"+p2.hashCode());
        System.out.println("p1的地址---------------->"+p1.address.hashCode());
        System.out.println("p2的地址---------------->"+p2.address.hashCode());
    }
}
